<body onload="die()">
  <script>
    function die() {
      document.body.offsetWidth;
      document.removeChild(document.documentElement);
      document.dir = "rtl";
    }
  </script>
</body>
